package com.yyy.dm.provider.controller;

import com.yyy.dm.provider.service.ImageProviderService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class ImageProviderController {
    @Resource
    private ImageProviderService imageProviderService;

    @PostMapping("/findItemPosterImageByItemId")
    public String findItemPosterImageByItemId(@RequestBody Long itemId){
        return imageProviderService.findItemPosterImageByItemId(itemId);
    }

    @PostMapping("/findItemBannerByItemId")
    public String findItemBannerByItemId(@RequestBody Long itemId){
        return imageProviderService.findItemBannerByItemId(itemId);
    }

    @PostMapping("/findItemCardImageByItemId")
    public String findItemCardImageByItemId(@RequestBody Long itemId){
        return imageProviderService.findItemCardImageByItemId(itemId);
    }

    @PostMapping("/findItemTransparentByItemId")
    public String findItemTransparentByItemId(@RequestBody Long itemId){
        return imageProviderService.findItemTransparentByItemId(itemId);
    }

    @PostMapping("/findUserIconByUserId")
    public String findUserIconByUserId(@RequestBody Long userId){
        return imageProviderService.findUserIconByUserId(userId);
    }

    @PostMapping("/findItemChildByItemId")
    public String findItemChildByItemId(@RequestBody Long itemId){
        return imageProviderService.findItemChildByItemId(itemId);
    }
}
